[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Syntax
C# |
---|
[SerializableAttribute] public abstract class ReadOnlyCollectionBase<T> |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public MustInherit Class ReadOnlyCollectionBase(Of T) |
Visual C++ |
---|
[SerializableAttribute] generic<typename T> public ref class ReadOnlyCollectionBase abstract |
Type Parameters
- T
The type exposes the following methods.
Public Methods
Name | Description | |
---|---|---|
Contains |
Determines if the collection contains a particular item. This default implementation
iterates all of the items in the collection via GetEnumerator, testing each item
against item using IComparable<T>.Equals or
Object.Equals.
| |
ConvertAll<(Of <TOutput>)> |
Convert this collection of items by applying a delegate to each item in the collection. The resulting enumeration
contains the result of applying converter to each item in this collection, in
order.
| |
CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
| |
CountWhere |
Counts the number of items in the collection that satisfy the condition
defined by predicate.
| |
Equals | (Inherited from Object.) | |
Exists |
Determines if the collection contains any item that satisfies the condition
defined by predicate.
| |
FindAll |
Enumerates the items in the collection that satisfy the condition defined
by predicate.
| |
ForEach |
Performs the specified action on each item in this collection.
| |
GetEnumerator |
Must be overridden to enumerate all the members of the collection.
| |
GetHashCode | Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToArray |
Creates an array of the correct size, and copies all the items in the
collection into the array, by calling CopyTo.
| |
ToString |
Shows the string representation of the collection. The string representation contains
a list of the items in the collection.
(Overrides Object..::ToString()().) | |
TrueForAll |
Determines if all of the items in the collection satisfy the condition
defined by predicate.
|
Protected Methods
Name | Description | |
---|---|---|
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection<(Of <T>)>..::Add | ||
ICollection<(Of <T>)>..::Clear | ||
ICollection<(Of <T>)>..::Remove | ||
ICollection..::CopyTo |
Copies all the items in the collection into an array. Implemented by
using the enumerator returned from GetEnumerator to get all the items
and copy them to the provided array.
| |
IEnumerable..::GetEnumerator |
Provides an IEnumerator that can be used to iterate all the members of the
collection. This implementation uses the IEnumerator<T> that was overridden
by the derived classes to enumerate the members of the collection.
|